﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Tong;
using Tong.Fy;
public partial class aspnet_testPargrameDir_site_newsShow : System.Web.UI.Page
{
    /// <summary>
    /// 数据操作通用类 实例 TextData
    /// </summary> 
    public TongUse TextData = new TongUse();

    /// <summary>
    /// 系统安装绝对路径
    /// </summary>
    public string Abs_Path = TongUse.SysPath;
    /// <summary>
    /// 用户存放数据的临时表
    /// </summary>
    DataTable MyDt = new DataTable();

    /// <summary>
    /// 分页
    /// </summary>
    FenYe FY = new FenYe();

    /// <summary>
    /// 站点通用方法类
    /// </summary>
    public Tong.ThisSiteUse.SiteTong TextThisSite = new Tong.ThisSiteUse.SiteTong();

    public string str1 = "";
    public string Link1 = "";
    public string Link2 = "";
    public string str2 = "";
    public string Link3 = "";
    public string str3 = "";
    public string Link4 = "";
    public string str4 = "";



    /// <summary>
    /// 快速导航行
    /// </summary>
    public String outQuickPointHtml = "";
    /// <summary>
    /// 栏目名
    /// </summary>
    public string ColoumnName = "";

    /// <summary>
    /// 得到传入的新闻分类ID
    /// </summary>
    String Class = "";

    /// <summary>
    /// 得到传入的文章ID
    /// </summary>
    public String NewsID = "";//卵巢疾病

    /// <summary>
    /// 得到传入的新闻 生成文件名 
    /// </summary>
    string NewsLx = "";

    int[] columnints;//大类的栏目ID

    /// <summary>
    /// 主栏目ID
    /// </summary>
    string CloumnID = "";

    /// <summary>
    /// 当前栏目的上上级栏目 第3级栏目
    /// </summary>
    string SendentID = "";

    /// <summary>
    /// 文章 keyword
    /// </summary>
    public string NameKewWord = "";

    /// <summary>
    /// 文章说明
    /// </summary>
    public string Descripation = "";

    public string Doctor1 = "";
    public string Doctor2 = "";
    DataTable DTDoctor = new DataTable();
    protected void Page_Load(object sender, EventArgs e)
    {

        BindData();
        
    }

    void BindData()
    {

        try
        {
            Class = Request.QueryString["Class"].Trim();
        }
        catch
        {
            Class = "2";
        }

        //新闻ID
        try
        {
            NewsID = Request.QueryString["id"].Trim();
            // NewsID = Request.QueryString["NewsID"].Trim();
        }
        catch
        {
            NewsID = "39";    //指定默认新闻ID

        }

        ///生成字符串
        try
        {
            NewsLx = Request.QueryString["NewsLx"].Trim();
        }
        catch
        {
            NewsLx = "wu";    //指定默认新闻 生成字符串

        }




        //新闻数据

        DataTable ShowNewsData = new DataTable();
        DataSet MyDS = new DataSet();
        ///新闻分类ID
        string NewsClassid = "";

        NewsClassid = Class;

        try
        {
            MyDS = TextData.SqlataSet("select * from [CX_News] where [CX_NEWS_Class_Edit]<>''  and CX_News_id=" + Request.QueryString["id"].ToString() + "   order by CX_NEWS_Sort desc,[CX_NEWS_PublicTime] desc, CX_NEWS_id desc ");
            ShowNewsData = MyDS.Tables[0];
            tt.InnerText = ShowNewsData.Rows[0]["CX_News_Name"].ToString();
            Page.Title = tt.InnerText;
            cont.Text = ShowNewsData.Rows[0]["CX_NEWS_Cont"].ToString() + "...";
            NameKewWord = ShowNewsData.Rows[0]["CX_NEWS_KeyWords"].ToString();
            Descripation = ShowNewsData.Rows[0]["CX_NEWS_Description"].ToString();
            if (NameKewWord == "")
            {
                NameKewWord = ShowNewsData.Rows[0]["CX_News_Name"].ToString();
            }
        }
        catch
        {

        }


    }



















}
